package com.woniuxy.service;

import com.woniuxy.entity.ResponseEntity;
import com.woniuxy.entity.Role;
import com.woniuxy.entity.User;

import java.util.List;
import java.util.Set;

public interface RbacRoleService {
    ResponseEntity selectAll();
    ResponseEntity addRole(Role role);
    ResponseEntity deleteRoleById(int id);
    List<Role> findRoleByName(String name);
    ResponseEntity editOne(Role role);
    ResponseEntity search(int currentPage, int pageSize,String name,String code);
    Set<String> findOneByUserName(String username);
    ResponseEntity findAll();
}
